package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiShop;
import cn.com.api.entity.ApiT_log;
import cn.com.api.entity.ApiT_products;

;

/**
 * log
 */
@Service
public interface ApiT_logService {
	// 根据id查看
	public ApiT_log findT_logById(Integer c_id);

	// 添加
	public void insertT_log(ApiT_log t_log);

	// 修改
	public void updateT_log(ApiT_log t_log);

	// 删除
	public int deleteT_log(Integer c_id);

	// 取消收藏
	public int deleteT_logByUidUseridActType(Integer c_uid, String c_userid, String c_act, String c_type);

	// 添加、取消收藏
	public void addOrCancelLog(ApiT_log t_log, Map<String, Object> map);

	// 我的收藏
	public List<ApiT_log> findT_logsByUserId(String c_userid);

	// 我收藏的店铺
	public List<ApiShop> findT_logs4ShopsByUserId_1(String c_userid, String cityid, Map<String, Object> map);

	// 我收藏的商品
	public List<ApiT_products> findT_logs4GoodsByUserId_1(String c_userid, String cityid, Map<String, Object> map);

	// 我收藏的店铺
	public List<Map<String, Object>> findT_logs4ShopsByUserId(String c_userid, String cityid, Map<String, Object> map);

	// 我收藏的商品
	public List<Map<String, Object>> findT_logs4GoodsByUserId(String c_userid, Map<String, Object> map);

	// 是否关注过了
	public boolean isFollow(String cuserid, String shop_id, String c_act);

}
